<!DOCTYPE html>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/common/include/taglibs.jsp"%>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="user-scalable=no, initial-scale=1.0,maximum-scale=1.0, minimum-scale=1.0, width=device-width" />
<title>:::	2030을 위한 재무설계	:::</title>
<link href="/hr/css/bootstrap.min.css" type="text/css" rel="stylesheet" />
<link href="/hr/css/bootstrap-responsive.min.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="/js/jquery-1.7.1.min.js" charset="UTF-8"></script>
<script type="text/javascript" src="/hr/js/bootstrap.min.js" charset="UTF-8"></script>
<script type="text/javascript">
$(document).ready(function(){
	
});

function frmSave(){
	if(""==$("#usr_nm").val()){
		alert("성명을 입력해주세요");
		$("#usr_nm").focus();
		return false;
	}
	if(""==$("#birthday").val()){
		alert("생년월일을 입력해주세요");
		$("#birthday").focus();
		return false;
	}
	if(""==$("#phone1").val() || ""==$("#phone2").val() || ""==$("#phone3").val()){
		alert("휴대폰을 입력해주세요");
		$("#phone1").focus();
		return false;
	}
	if(""==$("#email1").val() || ""==$("#email2").val()){
		alert("이메일을 입력해주세요");
		$("#email1").focus();
		return false;
	}
	if(""==$("#dsc").val()){
		alert("대학교를 입력해주세요");
		$("#dsc").focus();
		return false;
	}
	if(""==$("#hr").val()){
		alert("학과를 입력해주세요");
		$("#hr").focus();
		return false;
	}
	if(""==$("#addr").val()){
		alert("주소를 입력해주세요");
		$("#addr").focus();
		return false;
	}

	$("#frmData").submit();
}

function changeEmail(val){
	if($(val).val()==''){
		$('#email2').show();
	}else{
		$('#email2').hide();
	}
	$('#email2').val($(val).val());
}
</script>
<style type="text/css">
.form-horizontal .control-group {
  margin-bottom: 10px;
  *zoom: 1;
}
</style>
</head>
<body>
<form class="form-horizontal" id="frmData" action="./counselPrc.jsp">
	<input type="hidden" name="type" value="re">
  <div class="control-group">
    <label class="control-label" for="usr_nm">이름</label>
    <div class="controls">
      <input type="text" name="usr_nm" id="usr_nm" placeholder="">
    </div>
  </div>
  <div class="control-group">
    <label class="control-label" for="birthday">생년월일</label>
    <div class="controls">
      <input type="text" class="input-small" id="birthday" name="birthday" placeholder="">
        <input type="radio" name="sex" value="1" checked="checked"/>남
        <input type="radio" name="sex" value="2"/>여
    </div>
  </div>
  <div class="control-group">
    <label class="control-label" for="phone1">휴대폰</label>
    <div class="controls">
      	<select style="width: 65px;" name="phone1" id="phone1" >
			<option value="010">010</option>
			<option value="011">011</option>
			<option value="016">016</option>
			<option value="017">017</option>
			<option value="018">018</option>
			<option value="019">019</option>
		</select> -
      <input type="text" id="phone2" size="5" style="width:50px" maxlength="4" name="phone2" placeholder=""> -
      <input type="text" id="phone3" size="5" style="width:50px" maxlength="4" name="phone3"  placeholder="">
    </div>
  </div>
  <div class="control-group">
    <label class="control-label" for="email1">이메일</label>
    <div class="controls">
      <input type="text" id="email1" name="email1" style="width: 180px;" placeholder=""> @<br/>
      <input type="text" id="email2" name="email2" class="input-small" placeholder="">
      	<select style="width: 100px;" name="email3" onChange="changeEmail(this);">
      		<option value="">직접입력</option>
			<option value="chol.com">chol.com</option>
			<option value="dreamwiz.com">dreamwiz.com</option>
			<option value="empal.com">empal.com</option>
			<option value="hanmir.com">hanmir.com</option>
			<option value="hanafos.com">hanafos.com</option>
			<option value="gmail.com">gmail.com</option>
			<option value="hotmail.com">hotmail.com</option>
			<option value="lycos.co.kr">lycos.co.kr</option>
			<option value="nate.com">nate.com</option>
			<option value="naver.com">naver.com</option>
			<option value="daum.net">daum.net</option>
			<option value="hanmail.net">hanmail.net</option>
			<option value="gmail.com">gmail.com</option>
			<option value="paran.com">paran.com</option>
			<option value="yahoo.co.kr">yahoo.co.kr</option>
		</select>
    </div>
  </div>
  <div class="control-group">
    <label class="control-label" for="dsc">대학교</label>
    <div class="controls">
      <input type="text" id="dsc" name="dsc" placeholder="">
    </div>
  </div>
  <div class="control-group">
    <label class="control-label" for="hr">학과</label>
    <div class="controls">
      <input type="text" class="input-small" id="hr" name="hr" placeholder="">
        <input type="radio" name="hr_gubun" value="1" checked="checked"/>졸업
        <input type="radio" name="hr_gubun" value="2"/>졸업예정
    </div>
  </div>
  <div class="control-group">
    <label class="control-label" for="addr">주소</label>
    <div class="controls">
      <input type="text" name="addr" id="addr" placeholder="">
    </div>
  </div>
  <div class="control-group">
    <div class="controls">
      <button onclick="frmSave();return false;" class="btn">보내기</button>
    </div>
  </div>
</form>

</body>
</html>
